package com.xbongbong.pro.permission.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import com.xbongbong.saas.domain.entity.ShareRuleEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/4/24 9:39
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class VerifyUpdatePermissionDTO extends BaseDTO {

    private static final long serialVersionUID = -4513603823503553480L;
    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    /**
     * 业务类型
     */
    private Integer businessType;

    private Long menuId;

    private PaasFormDataEntityExt paasFormDataEntityExt;

    /**
     * 表单的共享权限规则设置，批量场景下会先查出来，防止多次查询
     */
    private List<ShareRuleEntity> ruleEntities;

    public VerifyUpdatePermissionDTO(){}

    public VerifyUpdatePermissionDTO(UserVO loginUser, PaasFormDataEntityExt paasFormDataEntityExt) {
        this.setLoginUser(loginUser);
        this.paasFormDataEntityExt = paasFormDataEntityExt;
    }
}
